package com.weiyi.mashangzhu.Landlord.Activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.weiyi.mashangzhu.Base.BaseActivity;
import com.weiyi.mashangzhu.R;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;


public class SetLandlordRoadActivity extends BaseActivity {

    @BindView(R.id.layout)
    LinearLayout layout;
    String title, content;
    @BindView(R.id.tv_title)
    TextView tvTitle;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_set_landlord_road);
        ButterKnife.bind(this);
        Intent intent = getIntent();
        title = intent.getStringExtra("title");
        content = intent.getStringExtra("content");
        tvTitle.setText(title);
        initView();
    }

    @Override
    public void initView() {
        super.initView();

        View view = LayoutInflater.from(SetLandlordRoadActivity.this).inflate(R.layout.item_host,
                null);
//        TextView q = (TextView) view.findViewById(R.id.help_question);
        TextView c = (TextView) view.findViewById(R.id.help_content);
//                            q.setText(( 1) + ". " + title+ "");
        c.setText(content + "");
        layout.addView(view);

    }

    @OnClick(R.id.back)
    public void onClick() {
        finish();
    }
}
